package com.yyc.bleem.controller;

import com.yyc.bleem.pojo.entity.ResponseEntity;
import com.yyc.bleem.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yyc
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 分页查询
     * @return ResponseUtil
     */
    @PostMapping("/searchPage")
    public ResponseEntity<Object> searchPage(){

        return this.userService.searchPage();
    }

}
